﻿<?php
if($this->session->userdata('admin_type') == 'Panelist'){
	$this -> admin = 'panelist';
}
$this -> load -> view('admin/head');
$this -> load -> view('admin/header');

?>

<!-- Content -->
<div class="space30"></div>
<div class="container">
	<div class="row">
		<div class="col-md-2">
			<nav class="navbar1">
				<?php if($this->admin == 'panelist'){
				$this->load->view('admin/left_nav1');
				}
				else
				{
				$this->load->view('admin/left_nav');
				}
				?>
			</nav>
		</div>
<div class="col-md-10"">

                       
    <div class="row"> 
      <div class="col-md-12>
		<div role="tabpanel">

			  <!-- Nav tabs -->
			  <ul class="nav nav-tabs" role="tablist">
				<li role="presentation" class="active"><a href="#main" aria-controls="main" role="tab" data-toggle="tab">Main</a></li>
				<li role="presentation"><a href="#criteria" aria-controls="criteria" role="tab" data-toggle="tab">Criteria</a></li>
				<li role="presentation"><a href="#panelist" aria-controls="panelist" role="tab" data-toggle="tab">Panelist</a></li>
			  </ul>

			  <!-- Tab panes -->
			  <div class="tab-content">
				<div role="tabpanel" class="tab-pane active" id="main">
						<div class="space20"></div>
								<!--row starts-->
									<div class="row1">
										<div class="form-group col-sm-12">
											<label for="eventname2">Event Name</label>
											<input class="form-control white" readonly id="eventname2" name="eventname2" type="text" value="<?php if(isset($result[0]->event_name)) {echo $result[0]->event_name; }?>">
											<div class="error" id="err-name">Please enter</div>
										</div>
										<div class="form-group col-sm-12">
											<label for="awardname2">Award Name</label>
											<input class="form-control white" readonly id="awardname2" name="awardname2" type="text" value="<?php if(isset($result[0]->award_name)) {echo $result[0]->award_name;} ?>">
											<div class="error" id="err-name">Please enter</div>
										</div>
										<div class="form-group col-sm-12">
											<label for="description2">Description</label>
											<textarea class="form-control white" readonly id="description2" name="description2" type="text" value="Description"><?php if(isset($result[0]->event_description)) {echo $result[0]->event_description;} ?></textarea>
											<div class="error" id="err-name">Please enter</div>
										</div>
										<div class="form-group col-sm-12">
											<label for="admin_incharge">Admin Incharge</label>
											<Select class="form-control white" readonly id="admin_incharge" name="admin_incharge" type="text" value="Admin Incharge">
												<option>
												<?php if(isset($result1[0]->admin_fullname)) {echo $result1[0]->admin_fullname; }?>
												</option>
												
											</select>
											<div class="error" id="err-name">Please enter</div>
										</div>
										<div class="form-group col-sm-12">
											<label for="status">Status</label>
											<Select class="form-control white" readonly id="status" name="status" type="text">
												<option>
													<?php if(isset($result[0]->award_current_status)) {echo $result[0]->award_current_status;} ?>
												</option>
												
											</select>
											<div class="error" id="err-name">Please enter</div>
										</div>
										<div class="form-group col-sm-12">
											<label for="required_refree">Result of Panelist Evaluation</label><br>
<!--											<a href="javascript: void(0)" data-toggle="modal" data-target=".bs-example-modal-lg">Manage Final Review</a>
-->                                            <a href="javascript: void(0)">Manage Final Review</a>
											<div class="table-responsive">
												<table border="0" cellspacing="0" cellpadding="0" class="manage_table table">
												  <tr>
													<td width="6%">S.No.</td>
													<td width="25%">Prize Name</td>
													<td width="18%">Winner</td>
													<td width="18%">Final Review Document</td>
													<td width="18%">Remark</td>
												  </tr>
												  
												</table>
											</div>
										</div>
										<div class="space30"></div>
										<div class="form-group col-sm-12">
<!--											<a  href="javascript: void(0)" onclick="final_scoresheet()">View Final Scoresheet</a>
-->                                            <a  href="javascript: void(0)">View Final Scoresheet</a>
										</div>
										<div class="form-group col-sm-12">
<!--											<a href="javascript: void(0)" onclick="final_scoresheet_by_panelist()">View Final Scoresheet (By Panelist)</a>
-->                                            <a href="javascript: void(0)">View Final Scoresheet (By Panelist)</a>
										</div>
									</div>
								<!--row closed-->    
									
									<div class="clearfix"></div>
				</div>
				<div role="tabpanel" class="tab-pane" id="criteria">
					<div class="row1">
						<div class="form-group col-sm-12">
							<label for="scopus2">Scopus</label>
							<input class="form-control white" id="scopus2" name="scopus2" onblur="if(this.value == '') this.value='35.00'" onfocus="if(this.value == '35.00') this.value=''" type="text" value="35.00">
							<div class="error" id="err-name">Please enter</div>
						</div>
						<div class="clearfix"></div>
						<div class="form-group col-sm-12">
							<div class="form-group col-md-6 custom_padding">
								<label for="publication2">Publications</label>
								<input class="form-control white" id="publication2" name="publication2" onblur="if(this.value == '') this.value='50.00'" onfocus="if(this.value == '50.00') this.value=''" type="text" value="50.00">
								<div class="error" id="err-name">Please enter</div>
							</div>
							<div class="form-group col-md-6 sub_categories">
								<a data-toggle="collapse" href="#collapseExample" aria-expanded="false" aria-controls="collapseExample">Sub-Categories</a>
							</div>
						</div>
						<div class="clearfix"></div>
						<div class="col-md-6">
							<div class="collapse" id="collapseExample">
								  <div class="well">
									<form>
										<div class="form-inline">
											<div class="col-md-12">
												<div class="form-group labels">Journals :</div>
												<div class="form-group"><input type="text" class="form-control" id="" placeholder="80.00"></div>
												<div class="checkbox"><label><input type="checkbox"> hide </label></div>
											</div>
											<div class="clearfix"></div>
											<div class="space10"></div>
											<div class="col-md-12">
												<div class="form-group labels">Patents :</div>
												<div class="form-group"><input type="text" class="form-control" id="" placeholder="0.00"></div>
												<div class="checkbox"><label><input type="checkbox"> hide </label></div>
											</div>
											<div class="clearfix"></div>
											<div class="space10"></div>
											<div class="col-md-12">
												<div class="form-group labels">Conference Proceedings :</div>
												<div class="form-group"><input type="text" class="form-control" id="" placeholder="10.00"></div>
												<div class="checkbox"><label><input type="checkbox"> hide </label></div>
											</div>
											<div class="clearfix"></div>
											<div class="space10"></div>
											<div class="col-md-12">
												<div class="form-group labels">Books/Monographs :</div>
												<div class="form-group"><input type="text" class="form-control" id="" placeholder="10.00"></div>
												<div class="checkbox"><label><input type="checkbox"> hide </label></div>
											</div>
											<div class="clearfix"></div>
										</div>
									  
									</form>
								  </div>
								</div>
						</div>
						<div class="clearfix"></div>
						<div class="form-group col-sm-12">
							<div class="col-md-6 custom_padding">
								<label for="Social2">Social Impact</label>
								<input class="form-control white" id="Social2" name="Social2" onblur="if(this.value == '') this.value='30.00'" onfocus="if(this.value == '30.00') this.value=''" type="text" value="30.00">
								<div class="error" id="err-name">Please enter</div>
							</div>
							<div class="col-md-6 form-group hide_box">
								<div class="checkbox"><label><input type="checkbox"> hide </label></div>
							</div>
						</div>
						<div class="clearfix"></div>
						<div class="form-group col-sm-12">
							<a class="" data-toggle="collapse" href="#collapseExample2" aria-expanded="false" aria-controls="collapseExample">More Criteria</a>
							<div class="collapse" id="collapseExample2">
								<div class="well">
									<div class="row">
										<form>
											<div class="form-inline">
												  <div class="form-group">
													<input type="text" class="form-control white" id="" placeholder="">
												  </div>
												   <div class="form-group">
													:
												  </div>
												  <div class="form-group">
													<input type="password" class="form-control white" id="" placeholder="0.00">
												  </div>
												  <div class="form-group">
													&nbsp;&nbsp;&nbsp;&nbsp; More Criteria 1 Score Name :
												  </div>
												  <div class="form-group">
													<input type="text" class="form-control white" id="" placeholder="">
												  </div>
											</div>
											<div class="space20"></div>
											<div class="form-inline">
												<div class="form-group">
													<input type="text" class="form-control white" id="" placeholder="">
												  </div>
												   <div class="form-group">
													:
												  </div>
												  <div class="form-group">
													<input type="password" class="form-control white" id="" placeholder="0.00">
												  </div>
												  <div class="form-group">
													&nbsp;&nbsp;&nbsp;&nbsp; More Criteria 2 Score Name :
												  </div>
												  <div class="form-group">
													<input type="text" class="form-control white" id="" placeholder="">
												  </div>
											</div>
											<div class="space20"></div>
											<div class="form-inline">
												<div class="form-group">
													<input type="text" class="form-control white" id="" placeholder="">
												</div>
												<div class="form-group">
													:
												</div>
												<div class="form-group">
													<input type="password" class="form-control white" id="" placeholder="0.00">
												</div>
												<div class="form-group">
													&nbsp;&nbsp;&nbsp;&nbsp; More Criteria 3 Score Name :
												</div>
												<div class="form-group">
													<input type="text" class="form-control white" id="" placeholder="">
												</div>
											</div>
										</form>										
									</div>
								</div>
							</div>
						</div>
						<div class="clearfix"></div>
						<div class="form-group col-sm-12">
							<label for="Scoring2">Scoring Guideline</label>
							<textarea class="form-control white" id="Scoring2" name="Scoring2"  type="text" value=""></textarea>
							<div class="error" id="err-name">Please enter</div>
						</div>
						<div class="clearfix"></div>
						<div class="form-group col-sm-12">
							<input type="button" class="btn btn-primary" value="Update"/>
						</div>
						<div class="clearfix"></div>
					</div>
				</div>
				<div role="tabpanel" class="tab-pane" id="panelist">
				<div class="table-responsive">
					<table cellpadding="0" cellspacing="0" border="0" class="table panelist_table manage_table">
						<tr>
							<td>
								No.
							</td>
							<td>
								Panelist Name
							</td>
							<td>
								Affiliation
							</td>
							<td>
								Research Area
							</td>
						</tr>
                        <?php $i=1; foreach($result3 as $row){ ?>
                        <tr>
                        <td><?php echo $i;?></td>
                        <td><?php echo $row[0]->admin_fullname; ?></td>
                        <td><?php echo $row[0]->admin_affiliation; ?></td>
                        <td><?php echo $row[0]->admin_research_area; ?></td>
                        </tr>
                        <?php $i++;} ?>
					</table>
					</div>
				</div>
			  </div>
		</div>
         <div class="space30"></div>
      </div>
       <div class="clearfix"></div>
    </div>    
  </div>    
  <div class="space20"></div>  
  <div class="space30"></div>  
 </div> 
  <!-- Content End -->
           
 <?php $this->load->view('common/footer'); ?> 
  
  <a href="#"x class="back-to-top"><span></span></a> 
<!--popup for manage final review-->
	<!-- Modal -->
<div class="modal fade bs-example-modal-lg" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" aria-hidden="true">
  <div class="modal-dialog modal-lg">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title" id="myModalLabel">Manage Final Review</h4>
      </div>
      <div class="modal-body">
		<table cellpadding="0" cellspacing="0" border="0" class="manage_final_review">
			<tbody>
				<tr>
					<th class="text-center">S No.</th>
					<th class="text-center">Prize Name</th>
					<th class="text-center">Applicant</th>
					<th class="text-center">Final Review Document</th>
					<th class="text-center">Download Sample</th>
					<th class="text-center">Remarks</th>
					<th class="text-center">&nbsp;</th>
				</tr>
				<tr>
					<td class="text-center">
						1
					</td>
					<td class="text-center">
						<input type="text" name="" id="" value="Winner">
					</td>
					<td class="text-center">
						<select>
							<option value="1">- Please select -</option>
							
						</select>
					</td>
					<td class="text-center">
						<input type="File" name="file_2" id="file_2">
					</td>
					<td class="text-center">
						<a href="#">Sample</a>
					</td>
					<td class="text-center">
						<textarea name="remark_2"></textarea>
					</td>
					<td class="text-center">
						<a href="#">Remove</a>
					</td>
				</tr>
				<tr>
					<td class="text-center">
						2
					</td>
					<td class="text-center">
						<input type="text" name="" id="" value="Winner">
					</td>
					<td class="text-center">
						<select>
							<option value="1">- Please select -</option>
							
						</select>
					</td>
					<td class="text-center">
						<input type="File" name="file_2" id="file_2">
					</td>
					<td class="text-center">
						<a href="#">Sample</a>
					</td>
					<td class="text-center">
						<textarea name="remark_2"></textarea>
					</td>
					<td class="text-center">
						<a href="#">Remove</a>
					</td>
				</tr>
				<tr>
					<td class="text-center">
						3
					</td>
					<td class="text-center">
						<input type="text" name="" id="" value="Winner">
					</td>
					<td class="text-center">
						<select>
							<option value="1">- Please select -</option>
							
						</select>
					</td>
					<td class="text-center">
						<input type="File" name="file_2" id="file_2">
					</td>
					<td class="text-center">
						<a href="#">Sample</a>
					</td>
					<td class="text-center">
						<textarea name="remark_2"></textarea>
					</td>
					<td class="text-center">
						<a href="#">Remove</a>
					</td>
				</tr>
			</tbody>
		</table>
		<div class="space30"></div>
		<div class="col-md-2"><input type="button" class="btn btn-primary" value="Add More"/></div>
		<div class="col-md-6"></div>
		<div class="col-md-2"><input type="button" class="btn btn-primary" value="Update"/></div>
		<div class="col-md-2"><input type="button" class="btn btn-primary" value="Close"/></div>
		<div class="clearfix"></div>
      </div>
    </div>
  </div>
</div>
<!--popup for manage final review-->
  <!-- JavaScripts -->
  <script type="text/javascript" src="js/jquery-1.10.2.js"></script>    
  <script>
  	$(document).ready(function(e) {
        $("table.manage_table tr:nth-child(1)").css("background-color","#e6edf2");
    });
	$('#myModal').on('shown.bs.modal', function () {
    $('#myInput').focus()
  })
  </script>                                                 
    <script>
		function final_scoresheet() {
			window.open("final_scoresheet.html", "_blank", "toolbar=yes, scrollbars=yes, resizable=yes, top=100, left=300, width=800, height=600");
		}
		function final_scoresheet_by_panelist() {
			window.open("final_scoresheet_by_panelist.html", "_blank", "toolbar=yes, scrollbars=yes, resizable=yes, top=100, left=300, width=800, height=600");
		}
		function score() {
			window.open("score.html", "_blank", "toolbar=yes, scrollbars=yes, resizable=yes, top=100, left=300, width=800, height=600");
		}
		</script>

        